import Cookies from "js-cookie"

const TokenKey = "vue_admin_template_token"

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  // cookies 一天后过期
  return Cookies.set(TokenKey, token,{expires:0.084})
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
